hdll.dll v3.0

  Disclaimer
This script is provided by hIRC.org on a "AS IS" basis and any expressed or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall hIRC.org or it's contributors be liable for any damages (Including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business intteruption) However caused and on tort (Including negligence or otherwise) Arising in any way out of the use of this script, even if advised of the possibility of such damage.

  How to use...
I've included "some" functions used in the hIRCDLL.dll (DLL used in the hIRC script). Will add more later. Enjoy.

Desktop

Syntax: /dll hdll.dll Desktop $window(window name).hwnd

Example:
//echo -s $dll(hdll.dll,Desktop,$window($active).hwnd)
This will Stick the active window onto the desktop


UnDesktop

Syntax: /dll hdll.dll UnDesktop $window(window name).hwnd

Example:
//echo -s $dll(hdll.dll,UnDesktop,$window($active).hwnd)
This will put active desktop window back into mIRC


IsDesktop

Syntax: /dll hdll.dll IsDesktop $window(window name).hwnd

Example:
//echo -s $dll(hdll.dll,IsDesktop,$window($active).hwnd)
This will checks to see if active window is on the desktop


CloseIRC

Syntax: /dll hdll.dll CloseIrc .

Example:
/dll hdll.dll CloseIrc .
Will close irc, and bring up the confirmation dialog.


WinSize

Syntax: $dll(hdll.dll,WinSize,$window($active).hwnd)

Example:
//echo -s $dll(hdll.dll,WinSize,$window($active).hwnd)
This will return the value in the form of X Y W H


NoMinButton

Syntax: /dll hdll.dll NoMinButton .

Example:
/dll hdll.dll NoMinButton .
This will disable the mIRC minimize button


IsNoMinButton

Syntax: /dll hdll.dll IsNoMinButton .

Example:
//echo -s $dll(hdll.dll,IsNoMinButton,.)
This will returns $false is button is disabled


NoMaxButton

Syntax: /dll hdll.dll NoMaxButton .

Example:
/dll hdll.dll NoMaxButton .
This will disable the mIRC maximize button


IsNoMaxButton

Syntax: /dll hdll.dll IsNoMaxButton .

Example:
//echo -s $dll(hdll.dll,IsNoMaxButton,.)
This will returns $false is button is disabled


RestoreButtons

Syntax: /dll hdll.dll RestoreButtons .

Example:
/dll hdll.dll RestoreButtons .
This will restore both the max and min buttons of mIRC


GetIconCount

Syntax: /dll hdll.dll GetIconCount [file]

Example:
/dll hdll.dll GetIconCount $mircexe
This will return the number of icons in $mircexe

Note: This works with icon library files such as *.icl, *.dll or *.exe.


GetSpecialDir

Syntax: /dll hdll.dll GetSpecialDir [windows|system|temp]

Example:
/dll hdll.dll GetSpecialDir windows
This will return your window directory

/dll hdll.dll GetSpecialDir system
This will return your window system directory

/dll hdll.dll GetSpecialDir temp
This will return your window temp directory


ResizeMirc

Syntax: $dll(hdll.dll,ResizeMirc,x y w h)

Example:
//echo -s $dll(hdll.dll,ResizeMirc,100 100 100 100)
This will set mIRC's size to the x,y,w,h coordinates.


mircSize

Syntax: $dll(hdll.dll,mircSize,max|min|restore|close)

Example:
//echo -s $dll(hdll.dll,mircSize,max)
//echo -s $dll(hdll.dll,mircSize,min)
//echo -s $dll(hdll.dll,mircSize,mrestore)
//echo -s $dll(hdll.dll,mircSize,close)
You can pass in either max, min,restore or close to the same function, to set mIRC's size


Destroy

Syntax: $dll(hdll.dll,Destroy,$window($active).hwnd)

Example:
/echo -s $dll(hdll.dll,Destroy,$window($active).hwnd)
Destroys a window.


DllInfo

Syntax: /dll hdll.dll DllInfo .

Example:
/dll hdll.dll DllInfo .
Shows info about the DLL.


  What's New
Verion 3.0
  • mircSize
  • ResizeMirc
  • Destroy
Verion 2.0
1. Added 8 more functions:
  • CloseIrc
  • WinSize
  • NoMinButton
  • IsNoMinButton
  • NoMaxButton
  • IsNoMaxButton
  • RestoreButtons
  • DllInfo
2. Removed the MsDos function

Version 1.0
1. 1st public release.

  Credits
Big thank you's go out to:
  • Khaled Mardam-Bey for creating mIRC
  • Narusegawa_Naru for helping me when i got stuck.
  • All of the idlers in #hIRC.Help and #executivelounge :)
  • People at ms.org's Forum, for helping me when i had problems.
  • If your name is not here, and you think it should be. Please email me. Thanks